package com.sinbader.xiaole.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.keyvalue.annotation.KeySpace;

import java.io.Serializable;

/**
 * <p>
 * 腾讯短信记录
 * </p>
 *
 * @author LuoYong
 * @since 2020-04-22
 */
@Data
@Accessors(chain = true)
@TableName("tencent_sms_record")
public class TencentSmsRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("purpose")
    private String purpose;

    @TableField("sign")
    private String sign;

    @TableField("request_id")
    private String requestId;

    @TableField("phone")
    private String phone;

    @TableField("params")
    private String params;

    @TableField("response_fee")
    private Integer responseFee;

    @TableField("response_code")
    private String responseCode;

    @TableField("response_message")
    private String responseMessage;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Override
    public String toString() {
        return "TencentSmsRecord{" +
        "id=" + id +
        ", purpose=" + purpose +
        ", requestId=" + requestId +
        ", phone=" + phone +
        ", params=" + params +
        ", responseFee=" + responseFee +
        ", responseCode=" + responseCode +
        ", responseMessage=" + responseMessage +
        ", createTime=" + createTime +
        "}";
    }

}
